Skip to content

[cDAC] Fix stub classification bugs - #131839

Closed
rcj1 wants to merge 1 commit into
dotnet:mainfrom
rcj1:fix-bug-8
Closed

[cDAC] Fix stub classification bugs#131839
rcj1 wants to merge 1 commit into
dotnet:mainfrom
rcj1:fix-bug-8

Conversation

@rcj1

@rcj1 rcj1 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

During internal diagnostics testing, a few discrepancies were found between the native and managed implementations. Specifically, the native implementation gives a name to StubLinkStubs and not to DynamicHelper stubs. Interpreter is also not a stub, same as Jitted and ReadyToRun.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 67f1c1e2-7373-4c6b-8c81-b0442336bcdd
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.

CDAC_TYPE_FIELD(CodeRangeMapRangeList, T_INT32, RangeListType, cdac_data<CodeRangeMapRangeList>::RangeListType)
CDAC_TYPE_END(CodeRangeMapRangeList)

CDAC_TYPE_BEGIN(StubLinkStubManager)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need changes in the contract docs describing the new types and how to use them no?

CDAC_TYPE_FIELD(StubLinkStubManager, TYPE(RangeList), RangeList, cdac_data<StubLinkStubManager>::RangeList)
CDAC_TYPE_END(StubLinkStubManager)

CDAC_TYPE_BEGIN(RangeList)

@jkotas jkotas Aug 5, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rangelist is redundant. We should get rid of all this and unify the stublinker memory management with other types of executable memory.

I have sent copilot to do that https://github.com/dotnet/runtime/tasks/5715a400-48a1-4c09-b6d8-76d2ef2c289b

@rcj1 rcj1 closed this Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants